package com.dchat.service.inter;

import com.dchat.domain.Member;
import com.dchat.domain.UserInfo;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface MemberService {
    @Async
    void insertOne(Member member);

    List<UserInfo> getMemberByGroupId(String id);

    Member isMember(String groupId,Integer memberId);

    @Async
    void clearAll(String groupId);

    void deleteOne(String groupId,Integer memberId);
}
